package cn.mesmile.groovy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zb
 * @date 2021/11/25 14:57
 * @Description
 */
@Data
@TableName("groovy_rule_info")
@ApiModel(value = "GroovyRuleInfo对象", description = "GroovyRuleInfo对象")
public class GroovyRuleInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty("主键id")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty("接口id")
	private String interfaceId;

	@ApiModelProperty("spring中BeanName")
	private String beanName;

	@ApiModelProperty("groovy内容")
	private String scriptContent;

	@ApiModelProperty("规则类型")
	private String ruleType;

	@ApiModelProperty("状态,是否可用")
	private Boolean status;

	@ApiModelProperty("扩展信息")
	private String extendInfo;

	@ApiModelProperty("创建时间")
	private Date createTime;

	@ApiModelProperty("更新时间")
	private Date updateTime;

}
